﻿@model IEnumerable<BskLeague.Models.AnnounceCommunicate>

@{
    ViewBag.Title = "Index";
}

@Html.Partial("_Submenu") <br />

 <br /> <br />

<table>
    <tr>
        <th>
            Nazwa drużyny
        </th>
        <th>
            Status
        </th>
        <th>
            Potwierdzenie płatności
        </th>
        
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TeamName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status.Status)
        </td>
        <td>
            @if (null != item.PaymentFileName)
            {
                @Html.ActionLink("Pobierz", "PaymentFile", new { id = item.AnnounceCommunicateId })
            }
            else
            {
                @:brak
            }
                 
        </td>
       
        <td>
            @Html.ActionLink("Szczegóły", "AnnounceDetails", new { id=item.AnnounceCommunicateId }) |
            @Html.ActionLink("Usuń", "DeleteAnnouncement", new { id=item.AnnounceCommunicateId})
        </td>
    </tr>
}

</table>
